#ifndef _TOUCH_H_
#define _TOUCH_H_
#include "Main.h"

extern uint8_t menu_num;
void touch_int(void);

extern bool Onoff_state;
extern bool menu_key_long_flag;
extern bool feed_key_long_flag;
extern bool Onoff_key_long_flag;

extern bool menu_key_flag;
extern bool feed_key_flag;
extern bool Onoff_key_flag;

extern bool feed_num_state;

#define TM_BIN0 PORT_D_2
#define TM_BIN1 PORT_D_1
#define TM_BIN2 PORT_B_0
#define TM_BIN3 PORT_B_1

#define BIN0_state MR88FX02_Gpio_Get(TM_BIN0)
#define BIN1_state MR88FX02_Gpio_Get(TM_BIN1)
#define BIN2_state MR88FX02_Gpio_Get(TM_BIN2)
#define BIN3_state MR88FX02_Gpio_Get(TM_BIN3)



int touch_get(void);
void Key_state_get(void);
void menu_state_updata(void);


#endif
